#include <stdio.h>
#include <unistd.h> 
#include<sys/types.h>
#include<sys/stat.h>
#include<fcntl.h>
#include<string.h>

int main()
{
    char buff[1024];
    ssize_t s = read(0,buff,sizeof(buff));
    if(s>0)
    {
        buff[s]=0;
        write(1,buff,strlen(buff));
        write(2,buff,strlen(buff));
    }

    return 0;
}